package com.java.tutorials.jdk7.files;

import java.net.URI;
import java.nio.file.Files;
import java.nio.file.Paths;

/**
 * Created by xuzhike on 2016/1/26.
 * http://www.java2s.com/Code/Java/JDK-7/DeleteafilewithFilesandPaths.htm
 * Delete a file with Files and Paths
 */
public class DeleteafilewithFilesandPaths {
    public static void main(String[] args) throws Exception{
        Files.delete(Paths.get(new URI("file:///tmp.txt")));
    }
}
